package com.myshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 购物车实体(Cart)表实体类
 *
 * @author makejava
 * @since 2023-07-21 21:06:40
 */
@Data
@Accessors(chain = true)
public class Cart implements Serializable {
    @TableId(type = IdType.AUTO)
    //购物车的唯一标识
    private Integer id;
    //用户实体的主键属性
    private Integer uid;
    //商品的唯一主键
    private Integer pid;
    //购物车小计
    private Double count;
    //购物车商品数量
    private Integer num;
}

